package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2018-12-18
 */
@TableName("t_card")
public class Card extends Model<Card> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 卡类型@1：电话卡；2：积分卡；3：礼品卡
     */
	private Integer cardtype;
    /**
     * 卡号
     */
	private String cardno;
    /**
     * 面值
     */
	private BigDecimal amount;
    /**
     * 生效方式@1：绑定生效；2：默认生效
     */
	private Integer sxtype;
    /**
     * 生效日期
     */
	private String startdate;
    /**
     * 失效日期
     */
	private String enddate;
    /**
     * 卡密
     */
	private String pwd;
    /**
     * 渠道
     */
	private String qudoa;
    /**
     * 启用状态
     */
	private Integer state;
	private Integer expire;

	private Integer usefor;
    /**
     * 是否已用
     */
	@TableField("is_used")
	private Integer isUsed;

	@TableField("is_outdate")
	private Integer isOutdate;
    /**
     * 使用者
     */
	private Long useby;
    /**
     * 领取者
     */
	private Long uid;
	private Long mid;
	private Long mpid;
	private Date createtime;
	private Date modifytime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCardtype() {
		return cardtype;
	}

	public void setCardtype(Integer cardtype) {
		this.cardtype = cardtype;
	}

	public String getCardno() {
		return cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getSxtype() {
		return sxtype;
	}

	public void setSxtype(Integer sxtype) {
		this.sxtype = sxtype;
	}

	public String getStartdate() {
		return startdate;
	}

	public void setStartdate(String startdate) {
		this.startdate = startdate;
	}

	public String getEnddate() {
		return enddate;
	}

	public void setEnddate(String enddate) {
		this.enddate = enddate;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getQudoa() {
		return qudoa;
	}

	public void setQudoa(String qudoa) {
		this.qudoa = qudoa;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getIsUsed() {
		return isUsed;
	}

	public void setIsUsed(Integer isUsed) {
		this.isUsed = isUsed;
	}

	public Long getUseby() {
		return useby;
	}

	public void setUseby(Long useby) {
		this.useby = useby;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Integer getExpire() {
		return expire;
	}

	public void setExpire(Integer expire) {
		this.expire = expire;
	}

	public Integer getIsOutdate() {
		return isOutdate;
	}

	public void setIsOutdate(Integer isOutdate) {
		this.isOutdate = isOutdate;
	}

	public Integer getUsefor() {
		return usefor;
	}

	public void setUsefor(Integer usefor) {
		this.usefor = usefor;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Card{" +
			"id=" + id +
			", cardtype=" + cardtype +
			", cardno=" + cardno +
			", amount=" + amount +
			", sxtype=" + sxtype +
			", startdate=" + startdate +
			", enddate=" + enddate +
			", pwd=" + pwd +
			", qudoa=" + qudoa +
			", state=" + state +
			", isUsed=" + isUsed +
			", useby=" + useby +
			", uid=" + uid +
			", mid=" + mid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
